﻿@model Products.Databases.Table
@{
    var project = (Products.Product)ViewData["Product"];
    ViewBag.Title = "Create Table for " + project.Name;
    Layout = "~/Views/Shared/App.cshtml";
    
}
@using (Html.BeginForm())
{
    <button type="submit">
        Save
    </button>
    <input type="hidden"  name="projetId" value="@ViewData["projectId"]"/>
    <div class="cssform">
        <p>
            @Html.LabelFor(model => model.Name)
            @Html.TextBoxFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </p>
        <p>
            @Html.LabelFor(model => model.ConceptName)
            @Html.TextBoxFor(model => model.ConceptName)
            @Html.ValidationMessageFor(model => model.ConceptName)
        </p>
        <p>
            <label>
                Versions:</label>
            <select name="versionId" id="versions">
                @foreach (Products.ProductVersion v in project.Versions)
                {
                    <option value="@v.Id">@v.Name</option>
                }
            </select>
        </p>
        <p>
            @Html.LabelFor(model => model.Memo)            
            @Html.TextAreaFor(model => model.Memo)
            @Html.ValidationMessageFor(model => model.Memo)            
        </p>      
    </div>
}
@section PageTitle{
Create Table
}
@section Header{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
